package com.friday.dao;

import java.util.List;
import com.friday.po.Message;

public interface MessageDao {
	int insertMessage(Message msg) throws Exception;
	int deleteMessageById(String id) throws Exception;
	int updateMessage(Message msg) throws Exception;
	Message queryMessageById(String msgId) throws Exception;
	List<Message> queryMessageByReceiver(String to) throws Exception;
	List<Message> queryNewMessageByReceiver(String to) throws Exception;
}